home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / CBlibrary / h / TboxBugs < prev    next >
Encoding:
Text File  |  2003-09-09  |  2.1 KB  |  70 lines

  1. /*
  2.  * CBLibrary - TboxBugs
  3.  * Copyright (C) 2003  Chris Bazley
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Lesser General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2.1 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Lesser General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Lesser General Public
  16.  * License along with this library; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  */
  19.  
  20. /* Build switches for bugs in the Toolbox, and a macro */
  21.  
  22. #ifndef TboxBugs_h
  23. #define TboxBugs_h
  24.  
  25. /*
  26.   Current versions of the SaveAs object have a bug where the dbox is
  27.   closed on a successful save regardless of whether the user clicked
  28.   the 'Save' button with ADJUST.
  29.   Given this, there is little point in including code to update the
  30.   'default' dbox state (used to reset the dbox when 'Cancel' is
  31.   ADJUST-clicked)
  32. */
  33. #define SAVEAS_CRAP
  34.  
  35. /*
  36.   There is a bug concerning RISC OS 4 !Help (a toolbox client) and
  37.   delivery of Window_HasBeenHidden events for transient windows. The
  38.   event for our window, which should be sent on receipt of the Wimp's
  39.   MenusDeleted message, is instead sent prematurely to !Help - with our
  40.   window's ObjectId!
  41.   In other words, we can't rely on receiving Window_HasBeenHidden events
  42.   for transient windows.
  43. */
  44. #define HELP_CRAP
  45.  
  46. /* 
  47.   The input focus is not automatically restored when 
  48.   background-input-focus transient windows are closed.
  49. */
  50. #define FOCUS_CRAP
  51.  
  52. /*
  53.   One of the Window SWI veneer functions is missing from Castle's build
  54.   of the toolbox veneers library.
  55. */
  56. #include "swis.h"
  57. #include "toolbox.h"
  58. #include "window.h"
  59. #define window_set_help_message2(flags, window, message_text) \
  60.   _swix( \
  61.      Toolbox_ObjectMiscOp, \
  62.      _INR(0,3), \
  63.      flags, \
  64.      window, \
  65.      Window_SetHelpMessage, \
  66.      message_text \
  67.    )
  68.  
  69. #endif
  70.